package com.demo.miya.controller.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 一个项目定义多个Feign接口，需要定义不同ContextId，否则其他项目引入该Jar会出错
  */
@FeignClient(contextId = "miyaClient", name = "service-miya")
public interface MiyaClient {

    @GetMapping("/hi")
    String hi();

    @RequestMapping(value = "/requestMapping", method = RequestMethod.GET)
    String requestMapping(@RequestParam("param") String param);
}
